import tensorflow as tf
import cv2

if __name__ == '__main__':
    image_path = 'E:\\Datasets\\Image Classification\\tiny-imagenet-200\\test\\images\\test_115.JPEG'
    im = cv2.imread(image_path)
    print(im)

    img_raw = tf.io.read_file(image_path)
    img_tensor = tf.image.decode_image(img_raw, 3)
    img_tensor = tf.image.resize(img_tensor, [64, 64])
    img_tensor /= 255.0
    print(img_tensor.shape)
